package com.ruoyi.client.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.client.mapper.CargoFeedbackTypeMapper;
import com.ruoyi.client.domain.CargoFeedbackType;
import com.ruoyi.client.service.ICargoFeedbackTypeService;

/**
 * 意见反馈类型Service业务层处理
 * 
 * @author zhk
 * @date 2024-08-14
 */
@Service
public class CargoFeedbackTypeServiceImpl implements ICargoFeedbackTypeService 
{
    @Autowired
    private CargoFeedbackTypeMapper cargoFeedbackTypeMapper;

    /**
     * 查询意见反馈类型
     * 
     * @param id 意见反馈类型主键
     * @return 意见反馈类型
     */
    @Override
    public CargoFeedbackType selectCargoFeedbackTypeById(Long id)
    {
        return cargoFeedbackTypeMapper.selectCargoFeedbackTypeById(id);
    }

    /**
     * 查询意见反馈类型列表
     * 
     * @param cargoFeedbackType 意见反馈类型
     * @return 意见反馈类型
     */
    @Override
    public List<CargoFeedbackType> selectCargoFeedbackTypeList(CargoFeedbackType cargoFeedbackType)
    {
        return cargoFeedbackTypeMapper.selectCargoFeedbackTypeList(cargoFeedbackType);
    }

    /**
     * 新增意见反馈类型
     * 
     * @param cargoFeedbackType 意见反馈类型
     * @return 结果
     */
    @Override
    public int insertCargoFeedbackType(CargoFeedbackType cargoFeedbackType)
    {
        return cargoFeedbackTypeMapper.insertCargoFeedbackType(cargoFeedbackType);
    }

    /**
     * 修改意见反馈类型
     * 
     * @param cargoFeedbackType 意见反馈类型
     * @return 结果
     */
    @Override
    public int updateCargoFeedbackType(CargoFeedbackType cargoFeedbackType)
    {
        return cargoFeedbackTypeMapper.updateCargoFeedbackType(cargoFeedbackType);
    }

    /**
     * 批量删除意见反馈类型
     * 
     * @param ids 需要删除的意见反馈类型主键
     * @return 结果
     */
    @Override
    public int deleteCargoFeedbackTypeByIds(Long[] ids)
    {
        return cargoFeedbackTypeMapper.deleteCargoFeedbackTypeByIds(ids);
    }

    /**
     * 删除意见反馈类型信息
     * 
     * @param id 意见反馈类型主键
     * @return 结果
     */
    @Override
    public int deleteCargoFeedbackTypeById(Long id)
    {
        return cargoFeedbackTypeMapper.deleteCargoFeedbackTypeById(id);
    }
}
